package com.wxzz.elearing.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxzz.elearing.course.entity.CurriculumUnit;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CurriculumUnitMapper extends BaseMapper<CurriculumUnit> {

    @Select("SELECT * FROM `curriculum_unit` WHERE curriculum_id = #{curriculumId} AND deleted = 0")
    List<CurriculumUnit> listCurriculumUnitByCurriculumId(@Param("curriculumId")Long curriculumId);
}
